import request from '@/utils/request'

// 课程平均进度
export function courseLearningProgress(params) {
  return request({
    url: '/statistics/system/courseLearningProgress',
    method: 'get',
    params:params
  })
}

// 数据统计
export function educationResourceStatistics(params) {
  return request({
    url: '/statistics/system/educationResourceStatistics',
    method: 'get',
    params:params
  })
}

// 重修学生情况
export function restartStudentStatistics(params) {
  return request({
    url: '/statistics/system/restartStudentStatistics',
    method: 'get',
    params:params
  })
}

// 拔尖学生
export function topStudentStatistics(type,limit,params) {
  return request({
    url: `/statistics/system/topStudentStatistics/${type}/${limit}`,
    method: 'get',
    params:params
  })
}

// 学习预警
export function leamingWarningStatistics(params) {
  return request({
    url: `statistics/system/learningWarningStatistics`,
    method: 'get',
    params:params
  })
}

// 用户登录统计
export function userLoginStatistics(day,params) {
  return request({
    url: '/statistics/system/userLoginStatistics/'+day,
    method: 'get',
    params:params
  })
}

// 各分院课程统计
export function branchCourseStatistics(params) {
  return request({
    url: '/statistics/system/branchCourseStatistics',
    method: 'get',
    params:params
  })
}

// 优秀课程统计
export function excellentCourseStatistics(params) {
  return request({
    url: '/statistics/system/excellentCourseStatistics',
    method: 'get',
    params:params
  })
}
